package com.iphone.xkyy.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.UUID;

/**
 * <p>
 * 
 * </p>
 *
 * @author ikun
 * @since 2022-12-08
 */
@TableName("t_msginfo")
public class Msginfo extends Model<Msginfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 消息名称
     */
    private String msgName;
    /**
     * 发布方式：1PUSH、2短信
     */
    private Integer pushType;
    /**
     * 发送到平台:1门店、2c端微信小程序、3c端微信公众号、4push通知栏
     */
    private Integer platform;
    /**
     * 发布范围：1所有门店，2直营门店，3加盟门店
     */
    private Integer range;
    /**
     * 通知类型：1召回公告、2集团公告、3系统更新，4系统维护，5其他消息
     */
    private Integer msgType;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 时间周期：每月、每周、每日、空白（不循环发）
     */
    private Date timeType;
    /**
     * 开始时间
     */
    private Date startTime;
    /**
     * 结束时间
     */
    private Date endTime;
    /**
     * 时间段
     */
    private Date partTime;
    /**
     * 第一次定时发布时间
     */
    private Date fristTime;
    /**
     * 标题
     */
    private String title;
    /**
     * 简介
     */
    private String summary;
    /**
     * 内容
     */
    private String text;
    /**
     * 状态：-1已撤销、1已发布、2待发布、3已作废、4草稿
     */
    private Integer status;
    /**
     * 消息队列发送消息状态：1发送成功、2发送失败、3等待发送
     */
    private Integer rabbitStatus;
    /**
     * 消息队列发送失败重试次数
     */
    private Integer rabbitNum;
    /**
     * 消息队列名称
     */
    private String rabbitQueue;
    /**
     * 消息类型：1定时消息、2自动触发
     */
    private Integer type;
    /**
     * 用户ID
     */
    private Integer userId;
    /**
     * 用户手机号
     */
    private String userPhone;
    /**
     * 用户接收消息的url
     */
    private String url;
    /**
     * 模板编号
     */
    private String smsCode;
    /**
     * 当天编号
     */
    private String msgSign;
    /**
     * 公司编号
     */
    private String companyNo;


    public Integer getId() {
        return id;
    }

    public void setId(UUID id) {
        this.id = id;
    }

    public String getMsgName() {
        return msgName;
    }

    public void setMsgName(String msgName) {
        this.msgName = msgName;
    }

    public Integer getPushType() {
        return pushType;
    }

    public void setPushType(Integer pushType) {
        this.pushType = pushType;
    }

    public Integer getPlatform() {
        return platform;
    }

    public void setPlatform(Integer platform) {
        this.platform = platform;
    }

    public Integer getRange() {
        return range;
    }

    public void setRange(Integer range) {
        this.range = range;
    }

    public Integer getMsgType() {
        return msgType;
    }

    public void setMsgType(Integer msgType) {
        this.msgType = msgType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getTimeType() {
        return timeType;
    }

    public void setTimeType(Date timeType) {
        this.timeType = timeType;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getPartTime() {
        return partTime;
    }

    public void setPartTime(Date partTime) {
        this.partTime = partTime;
    }

    public Date getFristTime() {
        return fristTime;
    }

    public void setFristTime(Date fristTime) {
        this.fristTime = fristTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getRabbitStatus() {
        return rabbitStatus;
    }

    public void setRabbitStatus(String rabbitStatus) {
        this.rabbitStatus = rabbitStatus;
    }

    public Integer getRabbitNum() {
        return rabbitNum;
    }

    public void setRabbitNum(Integer rabbitNum) {
        this.rabbitNum = rabbitNum;
    }

    public String getRabbitQueue() {
        return rabbitQueue;
    }

    public void setRabbitQueue(String rabbitQueue) {
        this.rabbitQueue = rabbitQueue;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    public String getMsgSign() {
        return msgSign;
    }

    public void setMsgSign(String msgSign) {
        this.msgSign = msgSign;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Msginfo{" +
        ", id=" + id +
        ", msgName=" + msgName +
        ", pushType=" + pushType +
        ", platform=" + platform +
        ", range=" + range +
        ", msgType=" + msgType +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", timeType=" + timeType +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", partTime=" + partTime +
        ", fristTime=" + fristTime +
        ", title=" + title +
        ", summary=" + summary +
        ", text=" + text +
        ", status=" + status +
        ", rabbitStatus=" + rabbitStatus +
        ", rabbitNum=" + rabbitNum +
        ", rabbitQueue=" + rabbitQueue +
        ", type=" + type +
        ", userId=" + userId +
        ", userPhone=" + userPhone +
        ", url=" + url +
        ", smsCode=" + smsCode +
        ", msgSign=" + msgSign +
        ", companyNo=" + companyNo +
        "}";
    }
}
